import Vue from 'vue'
import VueRouter from 'vue-router'

const Home=()=>import('../views/home/Home.vue')
//安装插件
Vue.use(VueRouter)

const routers=[
  {
    path:'',
    redirect:"/home"
  },
  {
    path:'/home',
    component: Home
  }
]
const router =new VueRouter({
  routers,
  mode:'history'
})
export default router
